<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/Public/Admin/css/admin.css">
    <script src="/Public/Admin/js/jquery.js"></script>
    <script src="/Public/Admin/js/pintuer.js"></script>  
    <script src="/Public/js/layer/layer.js"></script>  
</head>
<script>

</script>
<script>
//页面层
function save(id){
	$('#abc').val(id);
layer.open({
  type: 1,
  skin: 'layui-layer-rim', //加上边框
  area: ['420px', '240px'], //宽高
  content: '<div id="close" style="font-size:16px;padding:30px;"><center><span>奖励积分：</span><input type="text" id="jifen_a"/></center></div><center><div style="font-size:12px;"><input onclick="jifen()"  type="button" class="btn btn-success" value="确定" style="margin-right:10px;padding:3px 6px;"/></div></center>'
});


}
  
  function saveYue(id){
	$('#abc').val(id);
layer.open({
  type: 1,
  skin: 'layui-layer-rim', //加上边框
  area: ['420px', '240px'], //宽高
  content: '<div id="close" style="font-size:16px;padding:30px;"><center><span>余额充值：</span><input type="text" id="yue"/></center></div><center><div style="font-size:12px;"><input onclick="yue()"  type="button" class="btn btn-success" value="确定" style="margin-right:10px;padding:3px 6px;"/></div></center>'
});
  }
function close(){
	var close = $("#close");
	layer.close(close);
}
function jifen(){
	var id = $("#abc").val();
	var jifen = $("#jifen_a").val();
	$.post("{:U('Member/setJifen')}",{id:id,jifen:jifen},function(d){
		if(d.status==1){
			alert("操作成功");
			window.location.reload();
		}else{
			alert("参数错误，稍后再试");
		}
	})
}
  function yue(){
	var id = $("#abc").val();
	var jifen = $("#yue").val();
	$.post("{:U('Member/setYue')}",{id:id,jifen:jifen},function(d){
		if(d.status==1){
			alert("操作成功");
			window.location.reload();
		}else{
			alert("参数错误，稍后再试");
		}
	})
}


function saveshop(id){
	var jifen = $("#jifen_a").val();
	$.post("{:U('Member/setShop')}",{id:id},function(d){
		if(d.status==1){
			alert("操作成功");
			window.location.reload();
		}else{
			alert("参数错误，稍后再试");
		}
	})
}

</script>
<body>
<input id="abc" type="hidden">
<div class="panel admin-panel">
 <form method="post" action="{:U('Member/index')}" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
       <!--  <li> <a class="button border-main icon-plus-square-o" href="add.html"> 添加内容</a> </li> -->
        <li>搜索：</li>
        <li>
          <input type="text" value="{$post.nickname}" placeholder="模糊查询微信昵称" name="nickname" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch1()" > 搜索</a></li>
        <li>
          <input type="text" value="{$post.realname}" placeholder="模糊查询真实姓名" name="realname" class="input" style="width:250px; line-height:17px;display:inline-block" />
          <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()" > 搜索</a></li>
      </ul>
	<!--  <caption>人数：{$count}</caption> -->
    </div>
    <table class="table table-hover text-center">
	
      <tr>
        <th style="text-align:left; padding-left:20px;">ID</th>
        <th>商品名</th>
        <th>图片</th>
        <!-- <th>性别</th>
        <th>城市</th>
        <th>省份</th> -->
        <th>拼抢时间</th>   
     <!--    <th>规格</th> -->
       <!--  <th>积分总额</th> -->
        <!-- <th>操作</th> -->
      </tr>
      <volist name="flist1" id="vo">
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="{$vo.id}" />
           {$vo.id}</td>
          <td>{$vo.goods_name}</td>
          <td><img src="{$vo.image}" alt="" width="70" height="50" /></td>
         <!--  <td><eq name="vo.sex" value='1'>男<else />女</eq></td>
               <td>{$vo.city}</td>
               <td>{$vo.province}</td> -->
		  <td><php>echo date("Y-m-d H:i:s",$vo['add_time'])</php></td>
		<!--   <td>{$vo.attr_name}</td> -->
       <!-- <td>{$vo.money}</td> -->
         <!--  <td>
         <div class="button-group">  
         <a class="button border-red" href="javascript:void(0)" onclick="return del({$vo.id})"><span class="icon-trash-o"></span>助力他人记录</a> 
         <a class="button border-red" href="javascript:void(0)" onclick="return del({$vo.id})"><span class="icon-trash-o"></span>他人助力记录</a>
         </div>
         </td> -->
        </tr>
   		  </volist>
   <!--    <tr>
     <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
       全选 </td>
     <td colspan="7" style="text-align:left;padding-left:20px;"><a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 删除</a> 
       
   </tr> -->
      <tr>
        
      </tr>
    </table>
  </div>
</form>
  <div class="pagelist"> <ul>{$page}</ul></div>
</div>
<script>
function del(id){
	if(confirm("您确定要删除吗?")){
		
		document.location.href="{:U('Member/del')}?id="+id;
	}
}
//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})
//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;
		else
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}
function changesearch(){
	$("#listform").submit();	
}
function changesearch1(){
	$("#listform").submit();	
}
</script>

</body></html>